package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.entity.ArticleLike;

public interface ArticleLikeService extends IService<ArticleLike> {
    
    /**
     * 点赞或取消点赞文章
     * @return 返回true表示点赞，false表示取消点赞
     */
    boolean likeArticle(Long articleId, Long userId);
    
    /**
     * 获取文章点赞数
     */
    Integer getLikeCount(Long articleId);
    
    /**
     * 用户是否已点赞
     */
    boolean isLiked(Long articleId, Long userId);
} 